﻿@model SocialASP.Models.LoginModel

@{
    ViewBag.Title = "Log in";
}

<hgroup class="title">
    <h1>@ViewBag.Title.</h1>
</hgroup>
<div class="row">
    <div id="loginForm" class="span6">
        @using (Html.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal" }))
        {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary(true)

            <fieldset>
                <legend>Log in Form</legend>
                @BootHelper.ControlFor(Html, m => m.UserName)
                @BootHelper.ControlFor(Html, m => m.Password)
                @BootHelper.ControlFor(Html, m => m.RememberMe)
                @BootHelper.Submit("Log in")
            </fieldset>
            <p>
                @Html.ActionLink("Register", "Register") if you don't have an account.
            </p>
        }
    </div>

    <div class="span5 offset1" id="socialLoginForm">
        @Html.Action("ExternalLoginsList", new { ReturnUrl = ViewBag.ReturnUrl })
    </div>
</div>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
